Skip to content

Conversation

@craigsdennis
Copy link
Contributor

Summary

Traditional Function calling example was not correct and using values outside the schema.

Adding an assistant message that has the JSON version of the tool call is the correct way.

Tested and verified.

@hyperlint-ai
Copy link
Contributor

hyperlint-ai bot commented Mar 10, 2025

PR Change Summary

Updated the traditional function calling example to ensure accuracy and compliance with the schema.

  • Corrected the GitHub reference in the user message to use proper capitalization.
  • Updated the assistant's content to include the JSON version of the tool call instead of an empty string.

Modified Files

  • src/content/docs/workers-ai/function-calling/index.mdx

How can I customize these reviews?

Check out the Hyperlint AI Reviewer docs for more information on how to customize the review.

If you just want to ignore it on this PR, you can add the hyperlint-ignore label to the PR. Future changes won't trigger a Hyperlint review.

What is Hyperlint?

Hyperlint is an AI agent that helps you write, edit, and maintain your documentation.

Learn more about the Hyperlint AI reviewer and the checks that we can run on your documentation.

@craigsdennis craigsdennis changed the title Updates Traditional Function Calling Example [Workers AI] Updates Traditional Function Calling Example Mar 10, 2025
@github-actions
Copy link
Contributor

Howdy and thanks for contributing to our repo. We review internal PRs within 1 week. If it's something urgent or has been sitting without a comment, start a thread in the Developer Docs space internally.

@github-actions github-actions bot added product:workers-ai Workers AI: https://developers.cloudflare.com/workers-ai/ size/xs labels Mar 10, 2025
@github-actions
Copy link
Contributor

@craigsdennis craigsdennis enabled auto-merge (squash) March 10, 2025 19:20
@craigsdennis craigsdennis merged commit 51f5999 into production Mar 10, 2025
13 checks passed
@craigsdennis craigsdennis deleted the fix-function-calling branch March 10, 2025 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product:workers-ai Workers AI: https://developers.cloudflare.com/workers-ai/ size/xs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants